package com.blog.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleCategoryMapper {

    //根据作品ID删除其对应的类别
    @Delete("delete from tb_category_article where article_ID = #{ArticleId}")
    public void deleteByArticleId(@Param("ArticleId") Long ArticleId);


    void insertBatch(@Param("ids") List<Long> categoryIds, @Param("currentArticleId") Long currentArticleId);
}
